<?php foreach(front()->registry()->get('session', 'messages') as $message): ?>
<div class="alert alert-<?php echo $message[0]; ?>"><?php echo $message[1]; ?></div>
<?php endforeach; ?>